home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
003
/
books.arc
/
REGISTER.PRG
< prev
next >
Wrap
Text File
|
1985-04-17
|
2KB
|
70 lines
* register.prg
* Add deposits, get balances from check register.
store ' ' to rchoice
do while rchoice <> "3"
erase
text
Check Register Options
1. Make a deposit
2. Check Balance
3. Return to main menu
endt
@ 8,15 say "Enter choice (1-3) " get rchoice
read
* perform requested task
do case
Case rchoice = "1"
* make deposits
erase
use register
* display existing deposits.
? " Existing deposits... "
?
list off for deposit date,amount
?
stor y to adding
do while adding
? " Add another deposit? (Y/N) "
wait to yn
if !(yn) = "Y"
append blank
repl deposit with T
repl to:whom with "Deposit"
erase
@ 5,2 say "Enter Date ";
get date pict "99/99/99"
@ 7,2 say "Enter amount " get amount
@ 9,2 say "Source of check? " get reason
read
else
stor f to adding
endi (while adding)
endd (while adding)
case rchoice = "2"
* Calculate and display balance.
erase
use register
? "Calculating......"
sum amount for deposit to deps
sum amount for .not. deposit to chex
@ 10,10 say "Current balance is "+ str(deps-chex,9,2)
?
?
? "Press any key to continue....."
wait
endcase
enddo ( while rchoice <> 3 )
rele rchoice,adding,yn,deps,chex
return